
#include<iostream>
using namespace std;

int foo(int x, int y = 4, int z = 5)
{
 z = x+y;
 return (z);
}
int main()
{
//int x = 12;
//int y;
//	y = x > 10 ? 50 : 100;
//	cout << y;



// Function calls.
//int a = foo(2);
//cout<<a;
int a = foo(2, 6);
cout<<a<<endl<<endl<<endl;
//int a = foo(2, 3, 10);


int age;
while (true)
{
	
cout << "What is your age ?";
if (cin >> age && age > 0) 
break;

//cin.clear();		
while (cin.getline() !='\n') { }
}
while (cin.get() != '\n') { }
cout<< age;
	system("pause");
return 0;
}